* lisp/net/dictionary.el (dictionary-new-matching): Add dictionary-pre-buffer.
authorJuri Linkov <juri@linkov.net>
Sun, 3 Mar 2024 16:58:47 +0000 (18:58 +0200)
committerJuri Linkov <juri@linkov.net>
Sun, 3 Mar 2024 16:58:47 +0000 (18:58 +0200)
This is necessary to prepare the dictionary buffer for further processing
that also includes setting buffer-read-only to nil to be able to insert text.
(bug#69312)

lisp/net/dictionary.el

index e8ac9b679a0e701fed84be6cac52b3c636935853..e9e6b1292b5e1b7e5a37b42a5a9cda504567b574 100644 (file)
@@ -1118,6 +1118,7 @@ If PATTERN is omitted, it defaults to \"[ \\f\\t\\n\\r\\v]+\"."
   "Run a new matching search on WORD."
   (dictionary-ensure-buffer)
   (dictionary-store-positions)
+  (dictionary-pre-buffer)
   (dictionary-do-matching word dictionary-default-dictionary
                          dictionary-default-strategy
                          'dictionary-display-match-result)